<div id = "body">

<h1>Edit Chou &agrave; La Cr&egrave;me</h1>
<div class = "clear"></div>


<form method="post" action="<?php echo base_url(); ?>admin/chou-a-la-creme/edit-process" class = "form" enctype="multipart/form-data">
  <div class = "field"><label>Title (en)</label><input type = "text" name = "cc_en" class = "input size1" value="<?php echo $info[0]->cc_en; ?>" ></div>
  <div class = "field"><label>Title (jp)</label><input type = "text" name = "cc_jp" class = "input size1" value="<?php echo $info[0]->cc_jp; ?>" ></div>
  <div class = "field"><label>Picture</label><input type = "file" name = "img" class = "input size1" > * 600x852 pixel</div>
  
  <?php
    if($info[0]->cc_img!='' AND file_exists(APPPATH.'../assets/image/chou-a-la-creme/'.$info[0]->cc_id.'/'.$info[0]->cc_img)){
      $url = base_url();
      echo <<<ddd
      <div class = "field">
        <label>&nbsp;</label>
        <img src="{$url}assets/image/chou-a-la-creme/{$info[0]->cc_id}/{$info[0]->cc_img}" />
      </div>
ddd;
    }
  ?>
  
  <hr>
  <div class = "field"><label></label><input type = "submit" value = "Update" class = "btn">&nbsp;<a href = "#" class = "btn" onclick="javascript:history.back(1)">Cancel</a></div>
  <input type="hidden" name="id" value="<?php echo $info[0]->cc_id; ?>" />
</form>

</div>

<style>
  .form label {
    width:80px;
  }
</style>
<script>
  $(document).ready(function(){
    
  });
</script>
</div>